package leesoft.hub.actions;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import leesoft.data.databeans.WorkingReportItem;

public class WorkingReportAnalyzerAction implements IAction {

	@Override
	public Map process(SessionContext ctx) {
		HashMap<String,List> returnVal=new HashMap<String,List>();
		ArrayList<WorkingReportItem> items=new ArrayList<WorkingReportItem>();
		
		items.add(new WorkingReportItem(
				new Date(),
				"11111",
				1230,
				1298,
				993,
				256,
				1200,
				32,
				870,
				556,
				800,
				"72%"
		));
		items.add(new WorkingReportItem(
				new Date(),
				"1111",
				2230,
				1898,
				693,
				656,
				1380,
				74,
				1045,
				684,
				798,
				"72%"
		));
		returnVal.put("items", items);
		return returnVal;
	}
	public void setRequest(HttpServletRequest request){}
	public void setResponse(HttpServletResponse response){}

}
